package com.hy.utils;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * author: Mr.Du
 * Date: 2022/9/2
 * Time: 11:38
 */
public class DruidUtils {
    
    private DruidUtils(){
    }
    
    private static DruidDataSource druidDataSource = new DruidDataSource();
    
    
    static {
        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://localhost:3306/bank");
        druidDataSource.setUsername("dzt");
        druidDataSource.setPassword("000100");
        
    }
    
    public static DruidDataSource getInstance() {
        return druidDataSource;
    }
}
